<template>
  <div class="home">
    <!-- <Header></Header> -->
    <el-container class="content">
      <nav-menu></nav-menu>
      <el-container>
        <el-main>
            <router-view></router-view>
        </el-main>
        <!-- <el-footer>
          <Footer></Footer>
        </el-footer> -->
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { mapActions } from 'vuex'
// import Header from '@/components/layout/Header.vue'
// import Footer from '@/components/layout/Footer.vue'
import NavMenu from '@/components/layout/Menu.vue'
export default {
  components: {
    // Header,
    // Footer,
    NavMenu,
  },
  mounted() {
    this.saveMenus();
  },
  methods: {
    ...mapActions(['saveMenus']),  
  }
 
}
</script>
<style lang="less">
.home {
  width: 100%;
  height: 100%;
  .content {
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 0;
  }
}
</style>
